.class Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;
.super Les/s80;
.source "SimplePopNoteEditor.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "s"
.end annotation


# instance fields
.field final synthetic D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;


# direct methods
.method private constructor <init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-direct {p0}, Les/s80;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a;)V
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V

    return-void
.end method

.method private a(Lcom/estrongs/android/pop/app/editor/b;Ljava/io/OutputStream;IIJJ)I
    .locals 16
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move-object/from16 v2, p2

    move/from16 v3, p4

    const/16 v4, 0x1000

    new-array v5, v4, [C

    const/4 v6, 0x1

    const/4 v7, 0x0

    const/4 v8, 0x0

    const/4 v9, 0x0

    const/4 v10, 0x0

    const/4 v11, 0x0

    :goto_0
    const/4 v12, -0x1

    if-eq v8, v12, :cond_5

    .line 37
    invoke-virtual {v1, v5, v7, v4}, Lcom/estrongs/android/pop/app/editor/b;->read([CII)I

    move-result v8

    .line 38
    invoke-virtual/range {p1 .. p1}, Lcom/estrongs/android/pop/app/editor/b;->getPosition()J

    move-result-wide v12

    cmp-long v14, v12, p5

    if-ltz v14, :cond_0

    if-nez v10, :cond_0

    int-to-long v14, v8

    sub-long v12, v12, p5

    sub-long/2addr v14, v12

    long-to-int v8, v14

    const/4 v11, 0x1

    :cond_0
    if-lez v8, :cond_2

    .line 39
    new-instance v12, Ljava/lang/String;

    invoke-direct {v12, v5, v7, v8}, Ljava/lang/String;-><init>([CII)V

    move/from16 v13, p3

    .line 40
    invoke-direct {v0, v12, v13, v3}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->a(Ljava/lang/String;II)Ljava/lang/String;

    move-result-object v14

    .line 41
    iget-object v15, v0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v15}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->h(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v14

    if-nez v11, :cond_1

    .line 42
    array-length v15, v14

    iget-object v4, v0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v4}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->h(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v12, v4}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v4

    array-length v4, v4

    sub-int/2addr v15, v4

    add-int/2addr v9, v15

    .line 43
    :cond_1
    invoke-virtual {v2, v14}, Ljava/io/OutputStream;->write([B)V

    goto :goto_1

    :cond_2
    move/from16 v13, p3

    :goto_1
    if-eqz v11, :cond_4

    if-nez v10, :cond_4

    move-wide/from16 v14, p7

    .line 44
    invoke-virtual {v1, v14, v15}, Lcom/estrongs/android/pop/app/editor/b;->b(J)V

    .line 45
    iget-object v4, v0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v4}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->l(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/widget/EditText;

    move-result-object v4

    invoke-virtual {v4}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v4

    if-eqz v4, :cond_3

    .line 46
    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result v10

    if-eqz v10, :cond_3

    .line 47
    invoke-direct {v0, v4, v3}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->a(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v4

    .line 48
    iget-object v10, v0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v10}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->h(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v4, v10}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v4

    .line 49
    invoke-virtual {v2, v4}, Ljava/io/OutputStream;->write([B)V

    :cond_3
    const/16 v4, 0x1000

    const/4 v10, 0x1

    goto :goto_0

    :cond_4
    move-wide/from16 v14, p7

    const/16 v4, 0x1000

    goto :goto_0

    .line 50
    :cond_5
    invoke-virtual/range {p2 .. p2}, Ljava/io/OutputStream;->flush()V

    return v9
.end method

.method private a(Ljava/lang/String;I)Ljava/lang/String;
    .locals 3

    const/4 v0, 0x0

    .line 28
    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/g;->a(I)Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x1

    .line 29
    invoke-static {v1}, Lcom/estrongs/android/pop/app/editor/g;->a(I)Ljava/lang/String;

    move-result-object v2

    .line 30
    invoke-virtual {p1, v0, v2}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    const/4 v0, 0x2

    .line 31
    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/g;->a(I)Ljava/lang/String;

    move-result-object v0

    .line 32
    invoke-static {v1}, Lcom/estrongs/android/pop/app/editor/g;->a(I)Ljava/lang/String;

    move-result-object v2

    .line 33
    invoke-virtual {p1, v0, v2}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 34
    invoke-static {v1}, Lcom/estrongs/android/pop/app/editor/g;->a(I)Ljava/lang/String;

    move-result-object v0

    .line 35
    invoke-static {p2}, Lcom/estrongs/android/pop/app/editor/g;->a(I)Ljava/lang/String;

    move-result-object p2

    .line 36
    invoke-virtual {p1, v0, p2}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method private a(Ljava/lang/String;II)Ljava/lang/String;
    .locals 0

    .line 25
    invoke-static {p2}, Lcom/estrongs/android/pop/app/editor/g;->a(I)Ljava/lang/String;

    move-result-object p2

    .line 26
    invoke-static {p3}, Lcom/estrongs/android/pop/app/editor/g;->a(I)Ljava/lang/String;

    move-result-object p3

    .line 27
    invoke-virtual {p1, p2, p3}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method private a(Lcom/estrongs/android/pop/app/editor/a;Lcom/estrongs/android/pop/app/editor/a;)V
    .locals 7
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .line 1
    invoke-virtual {p1}, Lcom/estrongs/android/pop/app/editor/a;->g()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/a;->a(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_9

    .line 2
    invoke-virtual {p1}, Lcom/estrongs/android/pop/app/editor/a;->g()Ljava/lang/String;

    move-result-object v0

    const-string v1, "rw"

    invoke-static {v0, v1}, Lcom/estrongs/android/util/h0;->j(Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    .line 3
    invoke-virtual {p2}, Lcom/estrongs/android/pop/app/editor/a;->d()Ljava/io/InputStream;

    move-result-object p2

    .line 4
    invoke-virtual {p1}, Lcom/estrongs/android/pop/app/editor/a;->f()Ljava/io/OutputStream;

    move-result-object p1

    const/16 v1, 0x1000

    new-array v2, v1, [B

    const/4 v3, 0x0

    const/4 v4, 0x0

    :cond_0
    :goto_0
    const/4 v5, -0x1

    const-string v6, "updateFile file close error!"

    if-eq v4, v5, :cond_6

    .line 5
    :try_start_0
    invoke-virtual {p2, v2, v3, v1}, Ljava/io/InputStream;->read([BII)I

    move-result v4

    if-lez v4, :cond_0

    .line 6
    invoke-virtual {p1, v2, v3, v4}, Ljava/io/OutputStream;->write([BII)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v1

    goto :goto_2

    .line 7
    :catch_0
    :try_start_1
    invoke-static {}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->G()Ljava/lang/String;

    move-result-object v1

    const-string v2, "updateFile error!"

    invoke-static {v1, v2}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    if-eqz p2, :cond_1

    .line 8
    :try_start_2
    invoke-virtual {p2}, Ljava/io/InputStream;->close()V

    :cond_1
    if-eqz p1, :cond_2

    .line 9
    invoke-virtual {p1}, Ljava/io/OutputStream;->close()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

    goto :goto_1

    .line 10
    :catch_1
    invoke-static {}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->G()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1, v6}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    :cond_2
    :goto_1
    if-eqz v0, :cond_a

    goto :goto_5

    :goto_2
    if-eqz p2, :cond_3

    .line 11
    :try_start_3
    invoke-virtual {p2}, Ljava/io/InputStream;->close()V

    :cond_3
    if-eqz p1, :cond_4

    .line 12
    invoke-virtual {p1}, Ljava/io/OutputStream;->close()V
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_2

    goto :goto_3

    .line 13
    :catch_2
    invoke-static {}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->G()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1, v6}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    :cond_4
    :goto_3
    if-eqz v0, :cond_5

    .line 14
    invoke-static {v0}, Lcom/estrongs/android/util/h0;->a([Ljava/lang/String;)Z

    .line 15
    :cond_5
    throw v1

    :cond_6
    if-eqz p2, :cond_7

    .line 16
    :try_start_4
    invoke-virtual {p2}, Ljava/io/InputStream;->close()V

    :cond_7
    if-eqz p1, :cond_8

    .line 17
    invoke-virtual {p1}, Ljava/io/OutputStream;->close()V
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_3

    goto :goto_4

    .line 18
    :catch_3
    invoke-static {}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->G()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1, v6}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    :cond_8
    :goto_4
    if-eqz v0, :cond_a

    .line 19
    :goto_5
    invoke-static {v0}, Lcom/estrongs/android/util/h0;->a([Ljava/lang/String;)Z

    goto :goto_6

    .line 20
    :cond_9
    invoke-virtual {p1}, Lcom/estrongs/android/pop/app/editor/a;->g()Ljava/lang/String;

    move-result-object p1

    .line 21
    invoke-virtual {p2}, Lcom/estrongs/android/pop/app/editor/a;->g()Ljava/lang/String;

    move-result-object p2

    .line 22
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0, p1}, Lcom/estrongs/fs/impl/local/f;->a(Landroid/content/Context;Ljava/lang/String;)Z

    .line 23
    invoke-static {p2, p1}, Lcom/estrongs/fs/impl/local/f;->a(Ljava/lang/String;Ljava/lang/String;)Z

    .line 24
    invoke-static {}, Les/ru;->i()Les/ru;

    move-result-object p2

    invoke-virtual {p2, p1}, Les/ru;->b(Ljava/lang/String;)V

    :cond_a
    :goto_6
    return-void
.end method

.method private a(Lcom/estrongs/android/pop/app/editor/a;Ljava/io/OutputStream;JJ)V
    .locals 14
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    move-object v0, p0

    move-object v1, p1

    move-object/from16 v2, p2

    const/16 v3, 0x1000

    new-array v4, v3, [B

    const/4 v5, 0x1

    const/4 v6, 0x0

    const/4 v7, 0x0

    const/4 v8, 0x0

    const/4 v9, 0x0

    :goto_0
    const/4 v10, -0x1

    if-eq v7, v10, :cond_6

    .line 51
    invoke-virtual {p1, v4, v6, v3}, Lcom/estrongs/android/pop/app/editor/a;->a([BII)I

    move-result v7

    .line 52
    invoke-virtual {p1}, Lcom/estrongs/android/pop/app/editor/a;->c()J

    move-result-wide v10

    cmp-long v12, v10, p3

    if-ltz v12, :cond_0

    if-nez v8, :cond_0

    int-to-long v12, v7

    sub-long v10, v10, p3

    sub-long/2addr v12, v10

    long-to-int v7, v12

    const/4 v9, 0x1

    :cond_0
    if-lez v7, :cond_1

    .line 53
    invoke-virtual {v2, v4, v6, v7}, Ljava/io/OutputStream;->write([BII)V

    :cond_1
    if-eqz v9, :cond_5

    if-nez v8, :cond_5

    move-wide/from16 v10, p5

    .line 54
    invoke-virtual {p1, v10, v11}, Lcom/estrongs/android/pop/app/editor/a;->a(J)V

    .line 55
    iget-object v8, v0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v8}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->l(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/widget/EditText;

    move-result-object v8

    invoke-virtual {v8}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v8

    if-eqz v8, :cond_4

    .line 56
    invoke-virtual {v8}, Ljava/lang/String;->length()I

    move-result v12

    if-eqz v12, :cond_4

    .line 57
    iget-object v12, v0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v12}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->n(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)I

    move-result v12

    if-eqz v12, :cond_2

    iget-object v12, v0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    .line 58
    invoke-static {v12}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->n(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)I

    move-result v12

    const/4 v13, 0x2

    if-ne v12, v13, :cond_3

    .line 59
    :cond_2
    iget-object v12, v0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v12}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->n(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)I

    move-result v12

    invoke-direct {p0, v8, v12}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->a(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v8

    .line 60
    :cond_3
    iget-object v12, v0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v12}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->h(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v8, v12}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v8

    invoke-virtual {v2, v8}, Ljava/io/OutputStream;->write([B)V

    :cond_4
    const/4 v8, 0x1

    goto :goto_0

    :cond_5
    move-wide/from16 v10, p5

    goto :goto_0

    .line 61
    :cond_6
    invoke-virtual/range {p2 .. p2}, Ljava/io/OutputStream;->flush()V

    return-void
.end method


# virtual methods
.method public y()Z
    .locals 22

    move-object/from16 v10, p0

    .line 1
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->q(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Ljava/lang/Object;

    move-result-object v11

    monitor-enter v11

    .line 2
    :try_start_0
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->j(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V

    .line 3
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->n(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)I

    move-result v0

    iget-object v1, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->g(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)I

    move-result v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_e

    const/4 v12, 0x1

    const/4 v13, 0x0

    if-eq v0, v1, :cond_0

    const/4 v14, 0x1

    goto :goto_0

    :cond_0
    const/4 v14, 0x0

    :goto_0
    const/4 v15, 0x5

    const/4 v8, 0x0

    .line 4
    :try_start_1
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->k(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/editor/c;->g()Ljava/io/File;

    move-result-object v0

    .line 5
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_10
    .catchall {:try_start_1 .. :try_end_1} :catchall_c

    if-eqz v1, :cond_1

    .line 6
    :try_start_2
    invoke-virtual {v0}, Ljava/io/File;->delete()Z
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_1

    :catchall_0
    move-exception v0

    move-object v3, v0

    move-object v1, v8

    move-object v2, v1

    move-object/from16 v16, v2

    goto/16 :goto_1b

    :catch_0
    move-exception v0

    move-object v1, v8

    move-object v2, v1

    move-object/from16 v16, v2

    goto/16 :goto_17

    .line 7
    :cond_1
    :goto_1
    :try_start_3
    iget-object v1, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->c(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/content/Context;

    move-result-object v1

    iget-object v2, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v2}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->s(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Ljava/io/File;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/estrongs/android/pop/app/editor/a;->a(Landroid/content/Context;Ljava/io/File;)Lcom/estrongs/android/pop/app/editor/a;

    move-result-object v9
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_10
    .catchall {:try_start_3 .. :try_end_3} :catchall_c

    .line 8
    :try_start_4
    invoke-virtual {v9}, Lcom/estrongs/android/pop/app/editor/a;->e()J

    move-result-wide v1

    iget-object v3, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v3}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->k(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/c;

    move-result-object v3

    invoke-virtual {v3}, Lcom/estrongs/android/pop/app/editor/c;->b()J

    move-result-wide v3
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_f
    .catchall {:try_start_4 .. :try_end_4} :catchall_b

    cmp-long v5, v1, v3

    if-lez v5, :cond_3

    .line 9
    :try_start_5
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    iget-object v1, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    const v2, 0x7f11071e

    invoke-virtual {v1, v2}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->b(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Ljava/lang/String;)Ljava/lang/String;

    .line 10
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/os/Handler;

    move-result-object v0

    invoke-virtual {v0, v15, v12, v13}, Landroid/os/Handler;->obtainMessage(III)Landroid/os/Message;

    move-result-object v0

    .line 11
    iget-object v1, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/os/Handler;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 12
    invoke-static {}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->G()Ljava/lang/String;

    move-result-object v0

    const-string v1, "no space for saving"

    invoke-static {v0, v1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_2
    .catchall {:try_start_5 .. :try_end_5} :catchall_1

    if-eqz v9, :cond_2

    .line 13
    :try_start_6
    invoke-virtual {v9}, Lcom/estrongs/android/pop/app/editor/a;->a()V
    :try_end_6
    .catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_1
    .catchall {:try_start_6 .. :try_end_6} :catchall_e

    goto :goto_2

    :catch_1
    move-exception v0

    move-object v1, v0

    .line 14
    :try_start_7
    invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V

    .line 15
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/os/Handler;

    move-result-object v0

    invoke-virtual {v0, v15, v12, v13}, Landroid/os/Handler;->obtainMessage(III)Landroid/os/Message;

    move-result-object v0

    .line 16
    iget-object v1, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/os/Handler;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 17
    :cond_2
    :goto_2
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->y(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V

    .line 18
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0, v8}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->a(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;)Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;

    monitor-exit v11
    :try_end_7
    .catchall {:try_start_7 .. :try_end_7} :catchall_e

    return v13

    :catchall_1
    move-exception v0

    move-object v3, v0

    move-object v1, v8

    move-object v2, v1

    :goto_3
    move-object/from16 v16, v2

    move-object v8, v9

    goto/16 :goto_1b

    :catch_2
    move-exception v0

    move-object v1, v8

    move-object v2, v1

    :goto_4
    move-object/from16 v16, v2

    move-object v8, v9

    goto/16 :goto_17

    .line 19
    :cond_3
    :try_start_8
    iget-object v1, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->c(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/content/Context;

    move-result-object v1

    invoke-static {v1, v0}, Lcom/estrongs/android/pop/app/editor/a;->a(Landroid/content/Context;Ljava/io/File;)Lcom/estrongs/android/pop/app/editor/a;

    move-result-object v6
    :try_end_8
    .catch Ljava/lang/Exception; {:try_start_8 .. :try_end_8} :catch_f
    .catchall {:try_start_8 .. :try_end_8} :catchall_b

    .line 20
    :try_start_9
    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
    :try_end_9
    .catch Ljava/lang/Exception; {:try_start_9 .. :try_end_9} :catch_e
    .catchall {:try_start_9 .. :try_end_9} :catchall_a

    const/16 v2, 0x15

    if-lt v1, v2, :cond_4

    :try_start_a
    invoke-virtual {v0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/estrongs/android/util/h0;->c1(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_4

    .line 21
    invoke-virtual {v0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/fs/impl/local/a;->a(Ljava/lang/String;)Ljava/io/OutputStream;

    move-result-object v0
    :try_end_a
    .catch Ljava/lang/Exception; {:try_start_a .. :try_end_a} :catch_3
    .catchall {:try_start_a .. :try_end_a} :catchall_2

    goto :goto_5

    :catchall_2
    move-exception v0

    move-object v3, v0

    move-object v1, v6

    move-object v2, v8

    goto :goto_3

    :catch_3
    move-exception v0

    move-object v1, v6

    move-object v2, v8

    goto :goto_4

    .line 22
    :cond_4
    :try_start_b
    invoke-virtual {v6}, Lcom/estrongs/android/pop/app/editor/a;->f()Ljava/io/OutputStream;

    move-result-object v0
    :try_end_b
    .catch Ljava/lang/Exception; {:try_start_b .. :try_end_b} :catch_e
    .catchall {:try_start_b .. :try_end_b} :catchall_a

    :goto_5
    move-object/from16 v16, v0

    .line 23
    :try_start_c
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/b;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/editor/b;->getPosition()J

    move-result-wide v17

    .line 24
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->r(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iget-object v1, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->h(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v0

    array-length v0, v0
    :try_end_c
    .catch Ljava/lang/Exception; {:try_start_c .. :try_end_c} :catch_d
    .catchall {:try_start_c .. :try_end_c} :catchall_9

    int-to-long v0, v0

    sub-long v0, v17, v0

    const-wide/16 v4, 0x0

    cmp-long v2, v0, v4

    if-gez v2, :cond_5

    move-wide v2, v4

    goto :goto_6

    :cond_5
    move-wide v2, v0

    :goto_6
    if-nez v14, :cond_6

    move-object/from16 v1, p0

    move-wide v4, v2

    move-object v2, v9

    move-object/from16 v3, v16

    move-wide/from16 v19, v4

    move-object/from16 v21, v6

    move-wide/from16 v6, v17

    .line 25
    :try_start_d
    invoke-direct/range {v1 .. v7}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->a(Lcom/estrongs/android/pop/app/editor/a;Ljava/io/OutputStream;JJ)V

    .line 26
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->w(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/e;

    move-result-object v0

    move-wide/from16 v6, v19

    invoke-virtual {v0, v6, v7}, Lcom/estrongs/android/pop/app/editor/e;->b(J)V
    :try_end_d
    .catch Ljava/lang/Exception; {:try_start_d .. :try_end_d} :catch_4
    .catchall {:try_start_d .. :try_end_d} :catchall_3

    move-wide v2, v6

    move-object v15, v9

    goto/16 :goto_7

    :catchall_3
    move-exception v0

    move-object v3, v0

    move-object v2, v8

    move-object v8, v9

    move-object/from16 v1, v21

    goto/16 :goto_1b

    :catch_4
    move-exception v0

    move-object v2, v8

    move-object v8, v9

    move-object/from16 v1, v21

    goto/16 :goto_17

    :cond_6
    move-object/from16 v21, v6

    move-wide v6, v2

    .line 27
    :try_start_e
    new-instance v0, Lcom/estrongs/android/pop/app/editor/b;

    iget-object v1, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->c(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/content/Context;

    move-result-object v1

    iget-object v2, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v2}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->s(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Ljava/io/File;

    move-result-object v2

    iget-object v3, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v3}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->h(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v0, v1, v2, v3}, Lcom/estrongs/android/pop/app/editor/b;-><init>(Landroid/content/Context;Ljava/io/File;Ljava/lang/String;)V

    .line 28
    iget-object v1, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->n(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)I

    move-result v19

    iget-object v1, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->g(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)I

    move-result v20
    :try_end_e
    .catch Ljava/lang/Exception; {:try_start_e .. :try_end_e} :catch_c
    .catchall {:try_start_e .. :try_end_e} :catchall_8

    move-object/from16 v1, p0

    move-object v2, v0

    move-object/from16 v3, v16

    move-wide v12, v4

    move/from16 v4, v19

    move/from16 v5, v20

    move-wide/from16 v19, v6

    move-object v15, v9

    move-wide/from16 v8, v17

    :try_start_f
    invoke-direct/range {v1 .. v9}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->a(Lcom/estrongs/android/pop/app/editor/b;Ljava/io/OutputStream;IIJJ)I

    move-result v1

    .line 29
    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/editor/b;->close()V

    int-to-long v0, v1

    add-long v4, v19, v0

    cmp-long v0, v4, v12

    if-gez v0, :cond_7

    move-wide v4, v12

    .line 30
    :cond_7
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->w(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/e;

    move-result-object v0

    invoke-virtual {v0, v12, v13}, Lcom/estrongs/android/pop/app/editor/e;->b(J)V

    move-wide v2, v4

    .line 31
    :goto_7
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->r(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->r(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->length()I

    move-result v1

    const/4 v4, 0x0

    invoke-virtual {v0, v4, v1}, Ljava/lang/StringBuilder;->delete(II)Ljava/lang/StringBuilder;

    .line 32
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/b;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/editor/b;->close()V

    .line 33
    invoke-virtual/range {v16 .. v16}, Ljava/io/OutputStream;->close()V
    :try_end_f
    .catch Ljava/lang/Exception; {:try_start_f .. :try_end_f} :catch_b
    .catchall {:try_start_f .. :try_end_f} :catchall_7

    .line 34
    :try_start_10
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-virtual/range {v21 .. v21}, Lcom/estrongs/android/pop/app/editor/a;->e()J

    move-result-wide v4

    invoke-static {v0, v4, v5}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->a(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;J)J

    .line 35
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->c(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;I)I
    :try_end_10
    .catch Ljava/lang/Exception; {:try_start_10 .. :try_end_10} :catch_a
    .catchall {:try_start_10 .. :try_end_10} :catchall_6

    move-object/from16 v1, v21

    .line 36
    :try_start_11
    invoke-direct {v10, v15, v1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->a(Lcom/estrongs/android/pop/app/editor/a;Lcom/estrongs/android/pop/app/editor/a;)V

    .line 37
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->k(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/editor/c;->j()V

    .line 38
    invoke-static {}, Les/p10;->e()Les/p10;

    move-result-object v0

    iget-object v4, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v4}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->s(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Ljava/io/File;

    move-result-object v4

    invoke-virtual {v4}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0, v4}, Les/p10;->f(Ljava/lang/String;)V

    const/16 v4, 0x1000

    new-array v5, v4, [C

    .line 39
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    new-instance v6, Lcom/estrongs/android/pop/app/editor/b;

    iget-object v7, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v7}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->c(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/content/Context;

    move-result-object v7

    iget-object v8, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v8}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->s(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Ljava/io/File;

    move-result-object v8

    iget-object v9, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v9}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->h(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Ljava/lang/String;

    move-result-object v9

    invoke-direct {v6, v7, v8, v9}, Lcom/estrongs/android/pop/app/editor/b;-><init>(Landroid/content/Context;Ljava/io/File;Ljava/lang/String;)V

    invoke-static {v0, v6}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->a(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Lcom/estrongs/android/pop/app/editor/b;)Lcom/estrongs/android/pop/app/editor/b;

    .line 40
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->w(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/e;

    move-result-object v0

    invoke-virtual {v0, v2, v3}, Lcom/estrongs/android/pop/app/editor/e;->a(J)Lcom/estrongs/android/pop/app/editor/e$a;

    move-result-object v0
    :try_end_11
    .catch Ljava/lang/Exception; {:try_start_11 .. :try_end_11} :catch_9
    .catchall {:try_start_11 .. :try_end_11} :catchall_5

    if-eqz v0, :cond_8

    .line 41
    :try_start_12
    iget-object v6, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v6}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/b;

    move-result-object v6

    iget-wide v7, v0, Lcom/estrongs/android/pop/app/editor/e$a;->b:J

    invoke-virtual {v6, v7, v8}, Lcom/estrongs/android/pop/app/editor/b;->b(J)V

    .line 42
    iget-object v6, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    iget v0, v0, Lcom/estrongs/android/pop/app/editor/e$a;->a:I

    invoke-static {v6, v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->c(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;I)I
    :try_end_12
    .catch Ljava/lang/Exception; {:try_start_12 .. :try_end_12} :catch_5
    .catchall {:try_start_12 .. :try_end_12} :catchall_4

    goto :goto_8

    :catchall_4
    move-exception v0

    move-object v3, v0

    move-object v8, v15

    const/4 v2, 0x0

    const/16 v16, 0x0

    goto/16 :goto_1b

    :catch_5
    move-exception v0

    .line 43
    :try_start_13
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_13
    .catch Ljava/lang/Exception; {:try_start_13 .. :try_end_13} :catch_7
    .catchall {:try_start_13 .. :try_end_13} :catchall_4

    .line 44
    :try_start_14
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/b;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/editor/b;->close()V
    :try_end_14
    .catch Ljava/io/IOException; {:try_start_14 .. :try_end_14} :catch_6
    .catch Ljava/lang/Exception; {:try_start_14 .. :try_end_14} :catch_7
    .catchall {:try_start_14 .. :try_end_14} :catchall_4

    goto :goto_8

    :catch_6
    move-exception v0

    .line 45
    :try_start_15
    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
    :try_end_15
    .catch Ljava/lang/Exception; {:try_start_15 .. :try_end_15} :catch_7
    .catchall {:try_start_15 .. :try_end_15} :catchall_4

    goto :goto_8

    :catch_7
    move-exception v0

    move-object v8, v15

    const/4 v2, 0x0

    const/16 v16, 0x0

    goto/16 :goto_17

    .line 46
    :cond_8
    :goto_8
    :try_start_16
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    .line 47
    :cond_9
    :goto_9
    iget-object v6, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v6}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/b;

    move-result-object v6

    invoke-virtual {v6}, Lcom/estrongs/android/pop/app/editor/b;->getPosition()J

    move-result-wide v6

    cmp-long v8, v6, v2

    if-nez v8, :cond_a

    goto :goto_a

    .line 48
    :cond_a
    iget-object v8, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v8}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/b;

    move-result-object v8

    invoke-virtual {v8, v5}, Ljava/io/Reader;->read([C)I

    move-result v8
    :try_end_16
    .catch Ljava/lang/Exception; {:try_start_16 .. :try_end_16} :catch_9
    .catchall {:try_start_16 .. :try_end_16} :catchall_5

    if-ltz v8, :cond_d

    cmp-long v9, v6, v2

    if-lez v9, :cond_b

    goto :goto_a

    .line 49
    :cond_b
    :try_start_17
    iget-object v6, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v6}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->u(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)I

    if-ne v8, v4, :cond_c

    .line 50
    iget-object v6, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v6}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->w(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/e;

    move-result-object v6

    iget-object v7, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v7}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->t(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)I

    move-result v7

    iget-object v9, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v9}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/b;

    move-result-object v9

    invoke-virtual {v9}, Lcom/estrongs/android/pop/app/editor/b;->getPosition()J

    move-result-wide v12

    invoke-virtual {v6, v7, v12, v13}, Lcom/estrongs/android/pop/app/editor/e;->a(IJ)V

    :cond_c
    if-eqz v14, :cond_9

    const/4 v6, 0x0

    .line 51
    invoke-virtual {v0, v5, v6, v8}, Ljava/lang/StringBuilder;->append([CII)Ljava/lang/StringBuilder;

    .line 52
    invoke-virtual {v0}, Ljava/lang/StringBuilder;->length()I

    move-result v7

    const/16 v8, 0x3000

    if-le v7, v8, :cond_9

    .line 53
    invoke-virtual {v0, v6, v4}, Ljava/lang/StringBuilder;->delete(II)Ljava/lang/StringBuilder;

    goto :goto_9

    :cond_d
    :goto_a
    const/4 v2, 0x3

    if-eqz v14, :cond_e

    .line 54
    iget-object v3, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v3}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->r(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 55
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->t(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)I

    move-result v0

    sub-int/2addr v2, v0

    :cond_e
    const/4 v0, 0x0

    :goto_b
    if-ge v0, v2, :cond_10

    .line 56
    iget-object v3, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v3}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/b;

    move-result-object v3

    invoke-virtual {v3, v5}, Ljava/io/Reader;->read([C)I

    move-result v3

    if-gez v3, :cond_f

    goto :goto_c

    .line 57
    :cond_f
    iget-object v4, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v4}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->r(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Ljava/lang/StringBuilder;

    move-result-object v4

    const/4 v6, 0x0

    invoke-virtual {v4, v5, v6, v3}, Ljava/lang/StringBuilder;->append([CII)Ljava/lang/StringBuilder;

    .line 58
    iget-object v3, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v3}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->u(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)I
    :try_end_17
    .catch Ljava/lang/Exception; {:try_start_17 .. :try_end_17} :catch_7
    .catchall {:try_start_17 .. :try_end_17} :catchall_4

    add-int/lit8 v0, v0, 0x1

    goto :goto_b

    .line 59
    :cond_10
    :goto_c
    :try_start_18
    new-instance v0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$v;

    iget-object v2, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    iget-object v3, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v3}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->r(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    iget-object v4, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v4}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->B(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/ObservableScrollView;

    move-result-object v4

    invoke-virtual {v4}, Landroid/widget/ScrollView;->getScrollY()I

    move-result v4

    const/4 v5, 0x0

    invoke-direct {v0, v2, v3, v5, v4}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$v;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Ljava/lang/String;II)V

    .line 60
    iget-object v2, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v2}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/os/Handler;

    move-result-object v2

    invoke-virtual {v2, v5}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v2

    .line 61
    iput-object v0, v2, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 62
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/os/Handler;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 63
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/os/Handler;

    move-result-object v0

    const/4 v2, 0x4

    invoke-virtual {v0, v2}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v0

    const/4 v2, 0x1

    .line 64
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v3

    iput-object v3, v0, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 65
    iget-object v2, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v2}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/os/Handler;

    move-result-object v2

    invoke-virtual {v2, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 66
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    iget-object v2, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v2}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->g(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)I

    move-result v2

    invoke-static {v0, v2}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->b(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;I)I
    :try_end_18
    .catch Ljava/lang/Exception; {:try_start_18 .. :try_end_18} :catch_9
    .catchall {:try_start_18 .. :try_end_18} :catchall_5

    if-eqz v15, :cond_11

    .line 67
    :try_start_19
    invoke-virtual {v15}, Lcom/estrongs/android/pop/app/editor/a;->a()V

    goto :goto_d

    :catch_8
    move-exception v0

    goto :goto_e

    :cond_11
    :goto_d
    if-eqz v1, :cond_12

    .line 68
    invoke-virtual {v1}, Lcom/estrongs/android/pop/app/editor/a;->a()V
    :try_end_19
    .catch Ljava/io/IOException; {:try_start_19 .. :try_end_19} :catch_8
    .catchall {:try_start_19 .. :try_end_19} :catchall_e

    goto :goto_f

    .line 69
    :goto_e
    :try_start_1a
    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    .line 70
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/os/Handler;

    move-result-object v0

    const/4 v1, 0x5

    const/4 v2, 0x1

    const/4 v3, 0x0

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->obtainMessage(III)Landroid/os/Message;

    move-result-object v0

    .line 71
    iget-object v1, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/os/Handler;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 72
    :cond_12
    :goto_f
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->y(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V

    .line 73
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    const/4 v2, 0x0

    invoke-static {v0, v2}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->a(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;)Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;

    monitor-exit v11
    :try_end_1a
    .catchall {:try_start_1a .. :try_end_1a} :catchall_e

    const/4 v1, 0x1

    return v1

    :catchall_5
    move-exception v0

    goto :goto_10

    :catch_9
    move-exception v0

    goto :goto_11

    :catchall_6
    move-exception v0

    move-object/from16 v1, v21

    :goto_10
    const/4 v2, 0x0

    goto :goto_13

    :catch_a
    move-exception v0

    move-object/from16 v1, v21

    :goto_11
    const/4 v2, 0x0

    goto :goto_14

    :catchall_7
    move-exception v0

    move-object/from16 v1, v21

    const/4 v2, 0x0

    goto :goto_12

    :catch_b
    move-exception v0

    move-object/from16 v1, v21

    const/4 v2, 0x0

    goto/16 :goto_16

    :catchall_8
    move-exception v0

    move-object v2, v8

    move-object v15, v9

    move-object/from16 v1, v21

    goto :goto_12

    :catch_c
    move-exception v0

    move-object v2, v8

    move-object v15, v9

    move-object/from16 v1, v21

    goto :goto_16

    :catchall_9
    move-exception v0

    move-object v1, v6

    move-object v2, v8

    move-object v15, v9

    :goto_12
    move-object v3, v0

    goto :goto_15

    :catch_d
    move-exception v0

    move-object v1, v6

    move-object v2, v8

    move-object v15, v9

    goto :goto_16

    :catchall_a
    move-exception v0

    move-object v1, v6

    move-object v2, v8

    move-object v15, v9

    :goto_13
    move-object v3, v0

    move-object/from16 v16, v2

    goto :goto_15

    :catch_e
    move-exception v0

    move-object v1, v6

    move-object v2, v8

    move-object v15, v9

    :goto_14
    move-object/from16 v16, v2

    goto :goto_16

    :catchall_b
    move-exception v0

    move-object v2, v8

    move-object v15, v9

    move-object v3, v0

    move-object v1, v2

    move-object/from16 v16, v1

    :goto_15
    move-object v8, v15

    goto/16 :goto_1b

    :catch_f
    move-exception v0

    move-object v2, v8

    move-object v15, v9

    move-object v1, v2

    move-object/from16 v16, v1

    :goto_16
    move-object v8, v15

    goto :goto_17

    :catchall_c
    move-exception v0

    move-object v2, v8

    move-object v3, v0

    move-object v1, v2

    move-object v8, v1

    move-object/from16 v16, v8

    goto :goto_1b

    :catch_10
    move-exception v0

    move-object v2, v8

    move-object v1, v2

    move-object v8, v1

    move-object/from16 v16, v8

    .line 74
    :goto_17
    :try_start_1b
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    .line 75
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/os/Handler;

    move-result-object v0

    const/4 v3, 0x5

    const/4 v4, 0x1

    const/4 v5, 0x0

    invoke-virtual {v0, v3, v4, v5}, Landroid/os/Handler;->obtainMessage(III)Landroid/os/Message;

    move-result-object v0

    .line 76
    iget-object v3, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v3}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/os/Handler;

    move-result-object v3

    invoke-virtual {v3, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_1b
    .catchall {:try_start_1b .. :try_end_1b} :catchall_d

    if-eqz v8, :cond_13

    .line 77
    :try_start_1c
    invoke-virtual {v8}, Lcom/estrongs/android/pop/app/editor/a;->a()V

    goto :goto_18

    :catch_11
    move-exception v0

    goto :goto_19

    :cond_13
    :goto_18
    if-eqz v16, :cond_14

    .line 78
    invoke-virtual/range {v16 .. v16}, Ljava/io/OutputStream;->close()V

    :cond_14
    if-eqz v1, :cond_15

    .line 79
    invoke-virtual {v1}, Lcom/estrongs/android/pop/app/editor/a;->a()V
    :try_end_1c
    .catch Ljava/io/IOException; {:try_start_1c .. :try_end_1c} :catch_11
    .catchall {:try_start_1c .. :try_end_1c} :catchall_e

    goto :goto_1a

    .line 80
    :goto_19
    :try_start_1d
    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    .line 81
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/os/Handler;

    move-result-object v0

    const/4 v1, 0x5

    const/4 v3, 0x1

    const/4 v4, 0x0

    invoke-virtual {v0, v1, v3, v4}, Landroid/os/Handler;->obtainMessage(III)Landroid/os/Message;

    move-result-object v0

    .line 82
    iget-object v1, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/os/Handler;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 83
    :cond_15
    :goto_1a
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->y(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V

    .line 84
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0, v2}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->a(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;)Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;

    monitor-exit v11
    :try_end_1d
    .catchall {:try_start_1d .. :try_end_1d} :catchall_e

    const/4 v1, 0x0

    return v1

    :catchall_d
    move-exception v0

    move-object v3, v0

    :goto_1b
    if-eqz v8, :cond_16

    .line 85
    :try_start_1e
    invoke-virtual {v8}, Lcom/estrongs/android/pop/app/editor/a;->a()V

    goto :goto_1c

    :catch_12
    move-exception v0

    goto :goto_1d

    :cond_16
    :goto_1c
    if-eqz v16, :cond_17

    .line 86
    invoke-virtual/range {v16 .. v16}, Ljava/io/OutputStream;->close()V

    :cond_17
    if-eqz v1, :cond_18

    .line 87
    invoke-virtual {v1}, Lcom/estrongs/android/pop/app/editor/a;->a()V
    :try_end_1e
    .catch Ljava/io/IOException; {:try_start_1e .. :try_end_1e} :catch_12
    .catchall {:try_start_1e .. :try_end_1e} :catchall_e

    goto :goto_1e

    .line 88
    :goto_1d
    :try_start_1f
    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    .line 89
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/os/Handler;

    move-result-object v0

    const/4 v1, 0x5

    const/4 v4, 0x1

    const/4 v5, 0x0

    invoke-virtual {v0, v1, v4, v5}, Landroid/os/Handler;->obtainMessage(III)Landroid/os/Message;

    move-result-object v0

    .line 90
    iget-object v1, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/os/Handler;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 91
    :cond_18
    :goto_1e
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->y(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V

    .line 92
    iget-object v0, v10, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;->D:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0, v2}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->a(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;)Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;

    .line 93
    throw v3

    :catchall_e
    move-exception v0

    .line 94
    monitor-exit v11
    :try_end_1f
    .catchall {:try_start_1f .. :try_end_1f} :catchall_e

    goto :goto_20

    :goto_1f
    throw v0

    :goto_20
    goto :goto_1f
.end method
